#-*- encoding:utf8 -*-

from django.db import models as db_models
from django.template.loader import Context
import json
from django.core.urlresolvers import reverse

class TreeForeignKey(db_models.ForeignKey):
    def __init__(self,to,is_ajax=False,*args,**kwargs):
        super(TreeForeignKey,self).__init__(to,*args,**kwargs)
        self.is_ajax = is_ajax